using CodeSaude.Domain.Entities;
using System.ComponentModel.DataAnnotations;
using System.Data.Entity.ModelConfiguration;

namespace CodeSaude.Infrastructure.Data.EntityConfig
{
    public class dripping_atendimentoMap : EntityTypeConfiguration<dripping_atendimento>
    {
        public dripping_atendimentoMap()
        {
            // Primary Key
            this.HasKey(t => t.id_dripping);

            // Properties
            this.Property(t => t.nome_dripping)
                .HasMaxLength(255);

            this.Property(t => t.observacao_dripping)
                .HasMaxLength(3000);

            // Table & Column Mappings
            this.ToTable("dripping_atendimento");
            this.Property(t => t.id_dripping).HasColumnName("id_dripping");
            this.Property(t => t.nome_dripping).HasColumnName("nome_dripping");
            this.Property(t => t.observacao_dripping).HasColumnName("observacao_dripping");
            this.Property(t => t.id_situacao).HasColumnName("id_situacao");
            this.Property(t => t.data_criacao).HasColumnName("data_criacao");
            this.Property(t => t.Usuario_criacao).HasColumnName("Usuario_criacao");
            this.Property(t => t.data_alteracao).HasColumnName("data_alteracao");
            this.Property(t => t.Usuario_alteracao).HasColumnName("Usuario_alteracao");
        }
    }
}
